package com.ittony.blog.service;

import com.ittony.blog.entity.User;

import java.util.List;

public interface UserService {
    List<User> listUser();

    User getUserById(Integer id);

    void updateUser(User user);

    void deleteUser(Integer id);

    User insertUser(User user);

    User getUserByNameOrEmail(String str);

    User getUserByName(String name);

    User getUserByEmail(String email);
}
